import request from '@/utils/request'

// 查询采购查询列表
export function listPurchase(query) {
  return request({
    url: '/search/purchase/purList',
    method: 'get',
    params: query
  })
}

// 查询采购查询详细
export function getPurchase(ID) {
  return request({
    url: '/search/purchase/' + ID,
    method: 'get'
  })
}

// 新增采购查询
export function addPurchase(data) {
  return request({
    url: '/search/purchase',
    method: 'post',
    data: data
  })
}

// 修改采购查询
export function updatePurchase(data) {
  return request({
    url: '/search/purchase',
    method: 'put',
    data: data
  })
}

// 删除采购查询
export function delPurchase(ID) {
  return request({
    url: '/search/purchase/' + ID,
    method: 'delete'
  })
}
